/**
 *  @file  vsStdOutput.h version 1.0 2007-11-20 
 *  @brief Define class StdOutput.
 *  Copyright (c) 2007 by @author <abitfree@gmail.com>
 */

#ifndef __VS_STDOUTPUT_H__
#define __VS_STDOUTPUT_H__

#include "vsLogOutput.h"

namespace vs {
namespace log {

/**
 * @brief The standard output class of log output.
 *
 * The log will be printed to the standard output device, usually the screen.
*/
class StdOutput : public LogOutput
{
public:
	/// Write a log message, it is usually called by the Logger class objects.
	virtual int Write(const char *pszMsg, int nSize, struct tm *pWriteTime);
};

INLINE
int StdOutput::Write(const char *pszMsg, int nSize, struct tm *pWriteTime)
{
	return printf(pszMsg);
}

} // namespace log
} // namespace vs


#endif // __VS_STDOUTPUT_H__
